// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, putRequest, deleteRequest, importRequest, getRequestWithNoToken } from '@/libs/axios';

// 获取案例数据 多条件
export const getIpCaseList = (params) => {
    return getRequest('/ipCase/getByCondition', params)
}
// 添加案例
export const addIpCase = (params) => {
    return postRequest('/ipCase/add', params)
}
// 编辑案例
export const editIpCase = (params) => {
    return postRequest('/ipCase/edit', params)
}
// 删除案例
export const deleteIpCase = (ids, params) => {
    return deleteRequest(`/ipCase/delByIds/${ids}`, params)
}
//根据id获取案例
export const getIpCaseById = (id, params) => {
    return getRequest(`/ipCase/get/${id}`, params)
}
// 获取案例数据 待审核
export const getIpCaseWaitList = (params) => {
    return getRequest('/ipCase/getWaitList', params)
}
// 审批案例
export const auditIpCase = (ids, params) => {
    return postRequest(`/ipCase/auditByIds/${ids}`, params)
}
